#!/usr/bin/python
#sushu
L = [2,3]
for x in range(4,1010):
    for i in L:
        s = 0
        if x%i > 0:
            s = x
            continue
        elif x%i == 0:
            s = 0
            break
    if s != 0:
        L.append(s)
print L
